# 找出不是公共的元素

firstStrArr = input().split()

secondStrArr = input().split()

res = []

for str in firstStrArr:
  if str not in secondStrArr:
    res.append(str)

for str in secondStrArr:
  if str not in firstStrArr:
    res.append(str)


print(' '.join(res))